//
//  LiveNewSignBaseView.m
//  AFNetworking
//
//  Created by tianlong on 2020/9/27.
//

#import "LiveNewSignBaseView.h"
#import "Masonry.h"

@implementation LiveNewSignBaseView

- (instancetype)initWithStuName:(NSString *)stuName
                      stuAvatar:(NSString *)stuAvatar {
    self = [super init];
    if (self) {
        self.stuName = stuName;
        self.stuAvatar = stuAvatar;
    }
    return self;
}
    
- (void)showSignSuccess{}
- (void)showSignNot{}
- (void)showSignMiss{}
- (void)dismiss {
    for (UIView *sub in self.inView.subviews) {
        if ([sub isKindOfClass:[LiveNewSignBaseView class]]) {
            [sub removeFromSuperview];
        }
    }
}

#pragma mark - 点击事件
- (void)clickedCloseButton:(UIButton *)button {
    if (self.clickedCloseButtonBlock) {
        self.clickedCloseButtonBlock();
    }
}

- (void)clickedSignButton:(UIButton *)button {
    if (self.clickedSignButtonBlock) {
        self.clickedSignButtonBlock();
    }
}

#pragma mark - getter and setter
- (CGFloat)referScale {
    if (IS_IPAD) {
        return 1.5;
    }
    return self.AutoFitWidthScale(667);
}

- (UIButton *)getSignButton {
    return nil;
}

@end
